#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMdiSubWindow>
#include "pupil.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

private slots:
    void closeMdiTab(int i);

    void on_actionNew_triggered();
    void on_actionAbout_triggered();

    void openDataForm(QString title, QStringList subjectsList, int objectCount);
    void openResultForm(Pupil** students, int studentsCount, QString title, QStringList subjectsList);
};

#endif // MAINWINDOW_H
